package com.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bean.Project;
import com.dao.ProjectMapper;
import com.service.ProjectService;
@Service
public class ProjectServiceImpl implements ProjectService{
	
	@Autowired
    private ProjectMapper dao;

	public int deleteByPrimaryKey(Integer id) {
		return dao.deleteByPrimaryKey(id);
	}

	public int insert(Project record) {
		return dao.insert(record);
	}

	public int insertSelective(Project record) {
		return dao.insertSelective(record);
	}

	public Project selectByPrimaryKey(Integer id) {
		return dao.selectByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(Project record) {
		return dao.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(Project record) {
		return dao.updateByPrimaryKey(record);
	}

	public List<Project> select(Map map) {
		return dao.select(map);
	}

	public Integer maxProject() {
		return dao.maxProject();
	}

	public Integer maxComplex() {
		return dao.maxComplex();
	}

	public Integer maxUnit() {
		return dao.maxUnit();
	}

	public Integer maxRoom() {
		return dao.maxRoom();
	}



}
